package com.xxg.renrenproduct.service;

import com.xxg.renrencommon.domain.result.BaseResult;
import com.xxg.renrencommon.domain.result.PageInfoResult;
import com.xxg.renrenproduct.dao.bean.UploadGoodsInfo;
import com.xxg.renrenproduct.domain.query.DeleteProductQuery;
import com.xxg.renrenproduct.domain.query.GetUploadInfoQuery;
import com.xxg.renrenproduct.domain.query.UploadProductQuery;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 类说明
 *
 * @author szj
 * @date 2021/12/27
 */
public interface ProductService {
    /**
     * 上传商品
     *
     * @param file 上传商品
     */
    BaseResult<Map<String, String>> upload(MultipartFile file) throws IOException;

    /**
     * 删除
     *
     * @param query
     * @return
     */
    BaseResult<Void> delete(DeleteProductQuery query);

    /**
     * 查询商品上传信息
     *
     * @param query 查询商品上传信息参数
     * @return BaseResult<PageInfoResult<UploadGoodsInfo>>
     */
    BaseResult<PageInfoResult<UploadGoodsInfo>> getUploadInfo(GetUploadInfoQuery query);
}
